package a.g;

import a.f.a.e;
import a.h.dc;
import a.h.ec;
import a.h.z;
import a.j.g;

public class k
  extends h
{
  private static final String q = "CIRCULAR";
  private static final String r = "ALLOW_OVERLAPS";
  private static final String s = "COMPACTNESS_FACTOR";
  private static final String t = "MAXIMAL_DEVIATION_ANGLE";
  private static final String u = "MINIMAL_EDGE_LENGTH";
  private static final String v = "PREFERRED_CHILD_WEDGE";
  private static final String w = "TREE";
  private static final String x = "FIXED_RADIUS";
  private static final String y = "CHOOSE_RADIUS_AUTOMATICALLY";
  private static final String z = "MINIMAL_NODE_DISTANCE";
  private static final String A = "MINIMAL_TREE_NODE_DISTANCE";
  private static final String B = "CYCLE";
  private static final String C = "ACT_ON_SELECTION_ONLY";
  private static final String D = "LAYOUT_STYLE";
  private static final String E = "GENERAL";
  private static final String F = "SINGLE_CYCLE";
  private static final String G = "BCC_ISOLATED";
  private static final String H = "BCC_COMPACT";
  private static final String I = "CIRCULAR_CUSTOM_GROUPS";
  private static final String J = "FROM_SKETCH";
  private static final String K = "HANDLE_NODE_LABELS";
  private static final String L = "PLACE_CHILDREN_ON_COMMON_RADIUS";
  private static final String[] M = { "BCC_COMPACT", "BCC_ISOLATED", "CIRCULAR_CUSTOM_GROUPS", "SINGLE_CYCLE" };
  private static final String N = "PARTITION_LAYOUT_STYLE";
  private static final String O = "PARTITION_LAYOUTSTYLE_CYCLIC";
  private static final String P = "PARTITION_LAYOUTSTYLE_DISK";
  private static final String Q = "PARTITION_LAYOUTSTYLE_ORGANIC";
  private static final String[] R = { "PARTITION_LAYOUTSTYLE_CYCLIC", "PARTITION_LAYOUTSTYLE_DISK", "PARTITION_LAYOUTSTYLE_ORGANIC" };
  public static int S;
  
  public k()
  {
    super("CIRCULAR", "yFiles Layout Team", "Circular Layout");
  }
  
  public dc j()
  {
    a.f.a.c localc = new a.f.a.c();
    e locale = localc.w();
    a.f.n.c localc1 = localc.x();
    dc localdc = new dc(a());
    localdc.l("GENERAL");
    localdc.a("LAYOUT_STYLE", M, localc.v());
    localdc.a("ACT_ON_SELECTION_ONLY", false);
    localdc.a("FROM_SKETCH", false);
    localdc.a("HANDLE_NODE_LABELS", false);
    localdc.l("CYCLE");
    localdc.a("PARTITION_LAYOUT_STYLE", R, localc.y());
    ec localec1 = localdc.a("MINIMAL_NODE_DISTANCE", locale.u(), 0, 999);
    ec localec2 = localdc.a("CHOOSE_RADIUS_AUTOMATICALLY", locale.x());
    ec localec3 = localdc.a("FIXED_RADIUS", (int)locale.v(), 50, 800);
    z localz = new z(localdc);
    localz.a(localec2, Boolean.FALSE, localec3);
    localz.a(localec2, Boolean.TRUE, localec1);
    localdc.l("TREE");
    localdc.a("PREFERRED_CHILD_WEDGE", localc1.x(), 1, 359);
    localdc.a("MINIMAL_EDGE_LENGTH", localc1.A(), 5, 400);
    localdc.a("MAXIMAL_DEVIATION_ANGLE", localc.u(), 10, 360);
    localdc.a("COMPACTNESS_FACTOR", localc1.z(), 0.1D, 0.9D);
    localdc.a("MINIMAL_TREE_NODE_DISTANCE", localc1.t(), 0, 100);
    localdc.a("ALLOW_OVERLAPS", localc1.y());
    localdc.a("PLACE_CHILDREN_ON_COMMON_RADIUS", true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "MINIMAL_TREE_NODE_DISTANCE"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "PLACE_CHILDREN_ON_COMMON_RADIUS"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "PREFERRED_CHILD_WEDGE"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "MINIMAL_EDGE_LENGTH"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "MAXIMAL_DEVIATION_ANGLE"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "COMPACTNESS_FACTOR"), true);
    localz.a(localdc.j("GENERAL", "LAYOUT_STYLE"), "SINGLE_CYCLE", localdc.j("TREE", "ALLOW_OVERLAPS"), true);
    return localdc;
  }
  
  public void n()
  {
    int i = f.p;
    boolean bool = f.o;
    dc localdc = i();
    a.f.a.c localc = new a.f.a.c();
    a.f.n.c localc1 = localc.x();
    if (i == 0) {
      if (localdc.h("LAYOUT_STYLE").equals("BCC_COMPACT"))
      {
        localc.b((byte)0);
        if (i != 0) {
          break label196;
        }
        if (!bool) {
          break label135;
        }
      }
    }
    if (i == 0) {
      if (localdc.h("LAYOUT_STYLE").equals("BCC_ISOLATED"))
      {
        localc.b((byte)1);
        if (i != 0) {
          break label196;
        }
        if (!bool) {
          break label135;
        }
      }
    }
    if (i == 0)
    {
      if (localdc.h("LAYOUT_STYLE").equals("CIRCULAR_CUSTOM_GROUPS")) {
        localc.b((byte)2);
      }
    }
    else
    {
      if (i != 0) {
        break label196;
      }
      if (!bool) {
        break label135;
      }
    }
    localc.b((byte)3);
    label135:
    localc.g(localdc.g("ACT_ON_SELECTION_ONLY"));
    localc.a(localdc.e("MAXIMAL_DEVIATION_ANGLE"));
    localc.j(localdc.g("FROM_SKETCH"));
    localc.i(localdc.g("PLACE_CHILDREN_ON_COMMON_RADIUS"));
    localc.h(localdc.g("HANDLE_NODE_LABELS"));
    label196:
    if (i == 0) {
      if (localdc.h("PARTITION_LAYOUT_STYLE").equals("PARTITION_LAYOUTSTYLE_CYCLIC"))
      {
        if (i != 0) {
          break label273;
        }
        localc.c((byte)0);
        if (!bool) {
          break label272;
        }
      }
    }
    if (i == 0) {
      if (localdc.h("PARTITION_LAYOUT_STYLE").equals("PARTITION_LAYOUTSTYLE_DISK"))
      {
        if (i != 0) {
          break label273;
        }
        localc.c((byte)1);
      }
    }
    if ((bool) && (localdc.h("PARTITION_LAYOUT_STYLE").equals("PARTITION_LAYOUTSTYLE_ORGANIC"))) {
      localc.c((byte)2);
    }
    label272:
    label273:
    e locale = localc.w();
    locale.a(localdc.e("MINIMAL_NODE_DISTANCE"));
    locale.i(localdc.g("CHOOSE_RADIUS_AUTOMATICALLY"));
    locale.c(localdc.e("FIXED_RADIUS"));
    localc1.b(localdc.e("PREFERRED_CHILD_WEDGE"));
    localc1.d(localdc.e("MINIMAL_EDGE_LENGTH"));
    localc1.a(localdc.f("COMPACTNESS_FACTOR"));
    localc1.i(localdc.g("ALLOW_OVERLAPS"));
    localc1.a(localdc.e("MINIMAL_TREE_NODE_DISTANCE"));
    g localg = e();
    if (i == 0) {
      if ((localdc.h("LAYOUT_STYLE").equals("CIRCULAR_CUSTOM_GROUPS")) && ((i != 0) || (localg.K() != null))) {
        localg.a(a.f.a.c.C, localg.K().g());
      }
    }
    try
    {
      a(localc);
    }
    finally
    {
      if (localdc.h("LAYOUT_STYLE").equals("CIRCULAR_CUSTOM_GROUPS")) {
        localg.j(a.f.a.c.C);
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.k

 * JD-Core Version:    0.7.0.1

 */